import React from 'react';
import { Route } from 'react-router-dom';

export const RouteEX = ({component: Component,...rest}) => {
    return (
        <Route {...rest} render={props => {
            return <Component {...props} />
        }} />
    )
}